package com.liu.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 患者表(TPatient)实体类
 *
 * @author makejava
 * @since 2022-11-04 17:48:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TPatient implements Serializable {
    private static final long serialVersionUID = -67670028562337048L;

    @ExcelProperty("id")
    private Integer id;
    /**
     * 国家
     */
    @ExcelProperty("国家")
    private String country;
    /**
     * 省份
     */
    @ExcelProperty("省份")
    private String province;
    /**
     * 姓名
     */
    @ExcelProperty("姓名")
    private String patientName;
    /**
     * 确诊类型（1.密接 2.无症状 3.时空伴随）
     */
    @ExcelProperty("类型")
    private String patientType;
    /**
     * 状态（1.重症 2.治愈）
     */
    @ExcelProperty("状态")
    private String patientState;
    /**
     * 确诊时间
     */
    @ExcelProperty("确诊时间")
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 治愈时间
     */
    @ExcelProperty("治愈时间")
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private Date cureTime;
    /**
     * 死亡时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dieTime;


}

